package com.onstar.cn.mag.dealer;

import java.util.List;

/**
 * Created by Yonglang Hong on 2016/7/21.
 */
public class NavAroundDealerResponseEntity {

    List<PreferredDealerEntity> dealers;

    Pageables pageable;

    public boolean hasNextPage(){
        if (pageable == null)
            return false;
        return  (pageable.getTotalSize() > pageable.getPageSize()) && (dealers != null && !dealers.isEmpty());
    }

    public Pageables getPageable() {
        return pageable;
    }

    public void setPageable(Pageables pageable) {
        this.pageable = pageable;
    }

    public List<PreferredDealerEntity> getList() {
        return dealers;
    }

    public void setList(List<PreferredDealerEntity> list) {
        this.dealers = list;
    }

}
